package com.sc.nft.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class SingleHoldCollectionDetails {

    @ApiModelProperty("藏品Id")
    private String collectionId;

    @ApiModelProperty("成本")
    private String cost;

    @ApiModelProperty("盈亏")
    private String profitLoss;

    @ApiModelProperty("盈亏率")
    private String profitLossRate;

    public void setCost(BigDecimal cost) {
        this.cost = cost.toPlainString();
    }

    public void setProfitLoss(BigDecimal profitLoss) {
        this.profitLoss = profitLoss.toPlainString();
    }

    public void setProfitLossRate(BigDecimal profitLossRate) {
        this.profitLossRate = profitLossRate.toPlainString();
    }



}
